[FFmpeg-user] Best sound codec for editing

Thomas Seilund tps at netmaster.dk
Thu Dec 5 19:30:26 CET 2013


Thomas Seilund writes:

> If I disable sound everything is better!
>
> I use ffplay to navigate a video to find a video section to cut out. When I  
> use ffplay hotkeys ie. Pageup to go forward 10 minutes the playback turns  
> into slow motion for a 10 - 20 seconds before the correct playback speed is  
> reestablished.
>
> If I add the no audio, -an, option when calling ffplay I do not have slow  
> motion.
>
> When I cut out a video section with the -ss option the resulting video has  
> the same problem where the first 10 – 20 seconds are slow motion. Like  
> wise, if I disable audio I do not have the slow motion.
>
> How do I avoid the slow motion and still have sound?
>
> Below is the command to cut out a video section
>
> ffmpeg -y -ss 1153 -i p20131119190433.ts -c:v copy -c:a copy  
> p20131119190433.2.ts
> ffmpeg version N-58729-g704cc5e Copyright (c) 2000-2013 the FFmpeg  
> developers
>   built on Dec  3 2013 21:56:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
>   configuration: --enable-gpl --enable-libmp3lame --enable-libvpx --enable- 
> libx264 --enable-version3 --enable-libvorbis --enable-libiec61883 --enable- 
> libfreetype
>   libavutil      52. 56.100 / 52. 56.100
>   libavcodec     55. 45.100 / 55. 45.100
>   libavformat    55. 22.100 / 55. 22.100
>   libavdevice    55.  5.102 / 55.  5.102
>   libavfilter     3. 91.100 /  3. 91.100
>   libswscale      2.  5.101 /  2.  5.101
>   libswresample   0. 17.104 /  0. 17.104
>   libpostproc    52.  3.100 / 52.  3.100
> Input #0, mpegts, from 'p20131119190433.ts':
>   Duration: 00:40:22.90, start: 1.376978, bitrate: 3646 kb/s
>   Program 1
>     Metadata:
>       service_name    : Service01
>       service_provider: FFmpeg
>     Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] /  
> 0x001B), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50  
> tbc
>     Stream #0:1[0x101]: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz,  
> stereo, s16p, 128 kb/s
> Output #0, mpegts, to 'p20131119190433.2.ts':
>   Metadata:
>     encoder         : Lavf55.22.100
>     Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576  
> [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 25 tbc
>     Stream #0:1: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 128  
> kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> frame=31570 fps=18597 q=-1.0 Lsize=  549961kB time=00:21:09.96  
> bitrate=3547.6kbits/s
> video:486436kB audio:19846kB subtitle:0 global headers:0kB muxing overhead  
> 8.627473%
> tps at T420:~/pokalsemifinale$
>
> Thanks
>
> Thomas S
>
> --
> Venlig hilsen
> Thomas Seilund
> Løkketoften 46
> 2625 Vallensbæk
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Here is info about the video when I include sound and I have the slow  
motion issue:

ffmpeg -i p20131119190433.2.ts
ffmpeg version N-58729-g704cc5e Copyright (c) 2000-2013 the FFmpeg  
developers
   built on Dec  3 2013 21:56:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
   configuration: --enable-gpl --enable-libmp3lame --enable-libvpx --enable- 
libx264 --enable-version3 --enable-libvorbis --enable-libiec61883 --enable- 
libfreetype
   libavutil      52. 56.100 / 52. 56.100
   libavcodec     55. 45.100 / 55. 45.100
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 91.100 /  3. 91.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
[NULL @ 0x1869240] start time is not set in estimate_timings_from_pts
[mpegts @ 0x1865100] Could not find codec parameters for stream 0 (Video:  
h264 ([27][0][0][0] / 0x001B)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize'  
options
Input #0, mpegts, from 'p20131119190433.2.ts':
   Duration: 00:21:10.08, start: 1.400000, bitrate: 3547 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), 90k tbr, 90k  
tbn, 180k tbc
     Stream #0:1[0x101]: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz,  
stereo, s16p, 128 kb/s
At least one output file must be specified
tps at T420:~/pokalsemifinale$

Thanks

Thomas S

-- 
Venlig hilsen
Thomas Seilund
Løkketoften 46
2625 Vallensbæk


More information about the ffmpeg-user mailing list