Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
143 views
find/change audio format and avi version of a given avi file
I have an overhead projector that supports playing data from USB sticks. For videos it has the following limitations (quotes from the user manual): - file type: AVI - **The audio format can only playback linear PCM and ADPCM.** - **Supports AVI 1.0.** So I have an AVI file but when I try to play it,...
I have an overhead projector that supports playing data from USB sticks. For videos it has the following limitations (quotes from the user manual): - file type: AVI - **The audio format can only playback linear PCM and ADPCM.** - **Supports AVI 1.0.** So I have an AVI file but when I try to play it, the projector says: Cannot play. **So how do I find out if my AVI file has the given properties?** **And if not, what can I do to turn it into a file with given properties?** Probably ffmpeg/ffprobe can do this, but what commands do I need to use? (I would like to use ffmpeg/ffprobe because it is already installed. Only if ffmpeg/ffprobe cannot do this, I am open to alternatives.)
Kjara (131 rep)
May 10, 2023, 06:46 PM
1 votes
0 answers
1280 views
Command line VOB to AVI/MP4 with good quality and deinterlace
I have some VOB files, grabbed from DVDs. I need to make AVI/MP4 files for uploading online. The original resolution is 720p and I want 720p, but need to scale as the pixels are not square (720x480 to I want to do it with the command line; whether it's mencoder or ffmpeg (or even vlc if I can master...
I have some VOB files, grabbed from DVDs. I need to make AVI/MP4 files for uploading online. The original resolution is 720p and I want 720p, but need to scale as the pixels are not square (720x480 to I want to do it with the command line; whether it's mencoder or ffmpeg (or even vlc if I can master its command line) is immaterial. But despite all googling I'm getting dodgy quality, notably, bad deinterlacing. Moreover some mencoder options I find are no longer valid anyway. (I want MPEG4/lavc encoding; let's not bother with x264). I would appreciate examples that give good quality deinterlaced MP4/AVI from VOB files. Which tool is used is immaterial as long as it's commonly available under Linux. EDIT: here is the output of ffmpeg -analyzeduration 100M -probesize 100M -i file.VOB . The subtitle track, however, is not needed.
`
Input #0, mpeg, from 'deathscene_from14_40.VOB':
  Duration: 00:35:51.24, start: 1068.184978, bitrate: 7986 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m, top first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:2[0x1bf]: Data: dvd_nav_packet
    Stream #0:3[0x20]: Subtitle: dvd_subtitle
`
Mikhail Ramendik (538 rep)
Dec 24, 2019, 03:03 PM • Last activity: Dec 24, 2019, 09:24 PM
11 votes
3 answers
24467 views
How to convert a VOB file to avi?
I am trying to convert a VOB file copied from a DVD into an avi in Ubuntu 13.10. I tried `dvdrip`, which failed due to a frame count error or something. I tried acidrip as well, but it always choose an audio track I did not want to use. I would prefer to have a command line solution to create an avi...
I am trying to convert a VOB file copied from a DVD into an avi in Ubuntu 13.10. I tried dvdrip, which failed due to a frame count error or something. I tried acidrip as well, but it always choose an audio track I did not want to use. I would prefer to have a command line solution to create an avi with the following features: - usable with mplayer (i.e. using the step functions) - with the subtitle as required (or no one at all) - with the correct audio track - with video and audio in sync I tried some ffmpeg and avconv commands and managed to create an avi, but the video and audio were completly out of sync. So what options should I use to have the VOB file converted to an avi file? **I would appreciate some explanations on the suggested options!** Additional information: 1. The ffmpeg command gives the following output for the input file Input #0, mpeg, from 'Videos/Test/VIDEO_TS/VTS_01_1.VOB': Duration: 00:04:53.32, start: 0.045500, bitrate: 29284 kb/s Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [PAR 8:9 DAR 4:3], 7500 kb/s, 27.68 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0.1[0x82]: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s Stream #0.2[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s Stream #0.3[0x81]: Audio: ac3, 0 channels [buffer @ 0x15ca6e0] w:720 h:480 pixfmt:yuv420p 2. The following command ffmpeg -i Videos/Test/VIDEO_TS/VTS_01_1.VOB -ss 589 -t 274 -sameq -acodec copy -ab 320k output.avi for example resulted in a crash of my Ubuntu session. 3. The following command avconv -i Videos/Test/VIDEO_TS/VTS_01_1.VOB -acodec copy -vcodec copy output.avi for example resulted in the following error: Application provided invalid, non monotonically increasing dts to muxer in stream 1: 374 >= 374 av_interleaved_write_frame(): Invalid argument 4. The following command avconv -i Videos/Test/VIDEO_TS/VTS_01_1.VOB -f avi -c:v mpeg4 -b:v 800k -g 300 -bf 2 -c:a libmp3lame -b:a 128k output.avi for example resulted in the following error: Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height 5. The following command avconv -i Videos/Test/VIDEO_TS/VTS_01_1.VOB -f avi -c:v mpeg4 -b:v 800k -g 300 -bf 2 -c:a ac3 -b:a 128k output.avi for example seemed to work for some frames. But very soon I encountered many errors of the form [ac3 @ 0x120d480] frame sync error Error while decoding stream #0:1 frame CRC mismatch 6. The following command mencoder Videos/Test/VIDEO_TS/VTS_01_1.VOB -oac copy -ovc x264 -x264encopts bitrate=2500 -o output.avi did some converting, but is (i) using subtitles although I did not want to use them (ii) got the audio wrong (audio and video is terribly misplaced) and (iii) seems to be slower than the movie actually goes (might take 2 hours for a 90 minute movie). 7. I tried to command given here (third post from Xeratul), but it stopped with the error FATAL: Cannot initialize video driver. 8. I tried the suggestion made below to look at the mencoder page . This page suggests to use two passes: *the first reads informations about the movie, the second uses that information to encode.* but neither it is explained *which* information to extract nor *how* to use them in the second pass. So I used the following command: mencoder Videos/Test/VIDEO_TS/VTS_01_1.VOB -nosound -ovc x264 \ -x264encopts direct=auto:pass=2:bitrate=900:frameref=5:bframes=1:\ me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 \ -vf scale=-1:-10,harddup -o video.avi which did convert the video, but with an unwanted subtitle. It is not clear at all how I can avoid using a subtitle.
Alex (5848 rep)
Dec 23, 2013, 03:19 PM • Last activity: Nov 1, 2019, 01:56 AM
6 votes
1 answers
6199 views
Can I split a avi file into 2 valid (watchable) files with only standard unix commands?
I have a very big movie file, I want to split it in 2. How can I do this?
I have a very big movie file, I want to split it in 2. How can I do this?
Stephane (163 rep)
Nov 27, 2013, 10:47 PM • Last activity: Dec 26, 2018, 10:50 PM
1 votes
1 answers
96 views
How do I convert a batch of avis into mp4s?
I have several avi files in the one directory that I would like to convert to mp4s using avconv. Now I know the basic procedure of how to do this, manually, for each avi, namely (where `$@` are the variables that change with each new avi): `avconv -i $@.avi -c copy $@.mp4` but I was wondering if any...
I have several avi files in the one directory that I would like to convert to mp4s using avconv. Now I know the basic procedure of how to do this, manually, for each avi, namely (where $@ are the variables that change with each new avi): avconv -i $@.avi -c copy $@.mp4 but I was wondering if anyone knows of how to write a bash script to do this automatically. I have tried a modified version of the answer provided to my [optimizing PNG question](https://unix.stackexchange.com/questions/223156/how-do-i-write-a-script-to-automatically-optimize-all-the-pngs-in-my-mediawiki-i) namely: for k in find . -name "*.avi" do avconv -i "$k" -c copy "$k.mp4" done but as k is of the form ./filename avconv could not understand it when given as input. Another issue is that even though I used quotation marks, because many of my avis have spaces in their file names, for some reason avconv was being run for every space-separated word in the file's name.
Josh Pinto (3533 rep)
Sep 22, 2015, 02:49 PM • Last activity: Sep 22, 2015, 03:14 PM
3 votes
1 answers
5897 views
Convert images into avi with Raspberry Pi
I'm following this page: [Creating Timelapse Videos With The Raspberry Pi Camera][1]. But every time I try to make the video, I get this error: ![ss of error][2] *original: https://i.sstatic.net/ApIJ0.png* Specifically this command from the output above: $ avconv -r 10 -i pic_%04d.png -r 10 -vcodec...
I'm following this page: Creating Timelapse Videos With The Raspberry Pi Camera . But every time I try to make the video, I get this error: ss of error *original: https://i.sstatic.net/ApIJ0.png* Specifically this command from the output above: $ avconv -r 10 -i pic_%04d.png -r 10 -vcodec libx264 -crf 20 -g 15 \ -vf crop=2592:1458,scale=1280:720 timelapse.mp4 ... ... Output #0, mp4, to 'timelapse.mp4': Output file #0 does not contain any stream Also when using mencoder, following this page: 6.8. Encoding from multiple input image files (JPEG, PNG, TGA, etc.) : ss of error *original: https://i.sstatic.net/svNLx.png* Can someone please help?
Coolcrab (133 rep)
Nov 2, 2013, 08:38 PM • Last activity: Nov 2, 2013, 11:30 PM
0 votes
1 answers
785 views
Converting *.ram to *.avi
I just came across an old file witn a ram extension. I've tried viewing it ( just to see what it is ) and am having extreme difficulties. I've tried looking for spftware online and alll I find are Windows programs and some online conversion sites.I would like to have a local utility convert such fil...
I just came across an old file witn a ram extension. I've tried viewing it ( just to see what it is ) and am having extreme difficulties. I've tried looking for spftware online and alll I find are Windows programs and some online conversion sites.I would like to have a local utility convert such files. Does anyone know something? How about for other weird file formats?
Mouse.The.Lucky.Dog (2057 rep)
May 19, 2013, 06:57 PM • Last activity: May 19, 2013, 07:42 PM
Showing page 1 of 7 total questions